import { Utility } from "@/libs/utility"
export const vitalSignMonitoringRecordForm = (item) => {
	return [
		{
			fieldName: "id",
			fieldCNName: "",
			filedValue: "",
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "",
			span: 2,
		},
		{
			/** 字段名，如：name */
			fieldName: "filterNo",
			/** 字段对应的中文解释，如：姓名 */
			fieldCNName: "",
			/** 字段的值，如：张三 */
			filedValue: 1,
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "",
			span: 2,
		},
		{
			fieldName: "sex",
			fieldCNName: "",
			filedValue: "",
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "",
			span: 2,
		},
		{
			fieldName: "examineeEn",
			fieldCNName: "",
			filedValue: "",
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "",
			span: 2,
		},
		{
			/** 字段名，如：name */
			fieldName: "examineeCode",
			/** 字段对应的中文解释，如：姓名 */
			fieldCNName: "受试者编号",
			/** 字段的值，如：张三 */
			filedValue: 1,
			disabled: true,
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "inputText",
			rules: {
				required: true, // 只有为true的时候才写，为false这个字段不要
			},
			span: 2,
		},
		{
			disabled: true,
			/** 字段名，如：name */
			fieldName: "examineeName",
			/** 字段对应的中文解释，如：姓名 */
			fieldCNName: "受试者姓名",
			/** 字段的值，如：张三 */
			filedValue: 1,
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "inputText",
			rules: {
				required: true, // 只有为true的时候才写，为false这个字段不要
			},
			span: 2,
		},
		{
			/** 字段名，如：name */
			fieldName: "randomNo",
			/** 字段对应的中文解释，如：姓名 */
			fieldCNName: "随机号",
			/** 字段的值，如：张三 */
			filedValue: 1,
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "inputText",
			disabled: true,
			span: 2,
			rules: {
				required: true, // 只有为true的时候才写，为false这个字段不要
			},
		},
		{
			/** 字段名，如：name */
			fieldName: "groupSeq",
			/** 字段对应的中文解释，如：姓名 */
			fieldCNName: "入组顺序号",
			/** 字段的值，如：张三 */
			filedValue: 1,
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "inputText",
			disabled: true,
			span: 2,
			rules: {
				required: true, // 只有为true的时候才写，为false这个字段不要
			},
		},
		{
			/** 字段名，如：name */
			fieldName: "monitorNo",
			/** 字段对应的中文解释，如：姓名 */
			fieldCNName: "监测点",
			/** 字段的值，如：张三 */
			filedValue: 1,
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "select",
			itemList: item,
			span: 2,
			rules: {
				required: true, // 只有为true的时候才写，为false这个字段不要
			},
		},
		{
			fieldName: "monitorTime",
			fieldCNName: "监测时间",
			fieldNames: ["monitorBeginTime", "monitorEndTime"],
			filedValue: "",
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "datetimerange",
			span: 2,
			rules: {
				required: true, // 只有为true的时候才写，为false这个字段不要
			},
		},
		{
			fieldName: "sbp",
			fieldCNName: "收缩压(mmHg)",
			filedValue: "",
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "inputNumber",
			span: 2,
			rules: {
				required: true, // 只有为true的时候才写，为false这个字段不要
			},
		},
		{
			fieldName: "arm",
			fieldCNName: "手臂",
			filedValue: "",
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "select",
			itemList: Utility.getDictList("collect_fingers"),
			span: 2,
		},
		{
			fieldName: "dbp",
			fieldCNName: "舒张压(mmHg)",
			filedValue: "",
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "inputNumber",
			span: 2,
			// rules: {
			// 	required: true, // 只有为true的时候才写，为false这个字段不要
			// },
		},
		{
			fieldName: "bbt",
			fieldCNName: "体温（℃）",
			filedValue: "",
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "inputNumber",
			span: 2,
			// rules: {
			// 	required: true, // 只有为true的时候才写，为false这个字段不要
			// },
		},
		{
			fieldName: "pulse",
			fieldCNName: "脉搏（次/分）",
			filedValue: "",
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "inputNumber",
			span: 2,
			// rules: {
			// 	required: true, // 只有为true的时候才写，为false这个字段不要
			// },
		},
		{
			fieldName: "breathe",
			fieldCNName: "呼吸（次/分）",
			filedValue: "",
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "inputNumber",
			span: 2,
			// rules: {
			// 	required: true, // 只有为true的时候才写，为false这个字段不要
			// },
		},
		{
			fieldName: "csJudge",
			fieldCNName: "异常临床判断",
			filedValue: "",
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "select",
			itemList: Utility.getDictList("cs_judge"),
			span: 2,
		},
		{
			fieldName: "csJudgeByName",
			fieldCNName: "判断人名称",
			filedValue: "",
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "inputText",
			span: 2,
		},
		{
			fieldName: "csJudgeTime",
			fieldCNName: "判断时间",
			filedValue: "",
			/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
			type: "datetime",
			span: 2,
		},
		{
			fieldName: "checkPict",
			fieldCNName: "检查图片",
			filedValue: "",
			type: "upload",
			/**  是否开启多选功能，true一次可选多个，false一次一个 */
			multiple: true,
			/** 接收类型：参考：https://www.w3cschool.cn/htmltags/att-input-accept.html   基础类型：image/*  ，*.xlsx   *.xls */
			accept: "image/*",
			// ****** 重点： 这里都要传限制个数，大于0，小于100
			limit: 10,
		},
	]
}
